package com.team.six.bluecatshop.service;

import com.team.six.bluecatshop.domain.Product;
import com.team.six.bluecatshop.domain.ProductType;
import com.team.six.bluecatshop.domain.SeachProductTypeResponse;

import java.util.List;

public interface ProductTypeService {
    /*
     * 增加修改一个用户
     * */
    public void add(ProductType productType) ;

    /**
     * 删除一个用户
     * */
    public void remove(String id) ;

    /**
     * 获得一个用户
     * */
    public ProductType findById(String id) ;


    /**
     * 获得用户列表
     * */
    public List<ProductType> findAll() ;

    ProductType findProductTypeByName(String name);

    public List<ProductType> findProductTypeByParentId(String id);

    public void updateByPrimaryKey(ProductType productType);

    List<Product> findByProductTypeId(String ptypeId);

    public List<ProductType> fenlei();

    ProductType selectByPrimaryKey(String id);

    SeachProductTypeResponse findProductTypeAll(Integer pageNum,Integer pageSize,String keyword);
}
